package cn.edu.hubu.hubusmartmedicalsystem.mapper;

import cn.edu.hubu.hubusmartmedicalsystem.entity.Device;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface DeviceMapper {

    Device selectById(String deviceId);

    List<Device> selectAll();

    int insertDevice(Device device);

    int updateDevice(Device device);

    int deleteById(String deviceId);

    int insertDevices(List<Device> devices); // 批量插入设备

    int deleteDevices(List<String> deviceIds); // 批量删除设备
}
